//app.js

/*
 * Ipad (768 x 1024)
 * Ipad restina ()
 */

var Ti;
//Libraries

Ti.include(
	'globals.js',
	'cs/cs.js',
	'cs/ui.js',
	'cs/datetime.js',
    'cs/EventGarbageCollection.js',
    'cs/ModalActivityIndicatorWindow.js'
    
   
    
);
require('settings').createSettings();
require('db').createDb();

// All Windows
Ti.include(
	'windows/ChangeTablePopup.js',
    'windows/TableWindow.js',
    'windows/OrderWindow.js',
    'windows/SettingWindow.js',
 	'windows/CashWindow.js',
 	'windows/ManagementWindow.js',
    'windows/MainWindow.js'
);

// open (sponsor) URLs in the native browser, not a webview
Ti.App.addEventListener('openURL', function(e){
  	Ti.Platform.openURL(e.url);
});



/*
var Paint = require('ti.paint');

var win = Ti.UI.createWindow({ backgroundColor: '#fff' });
var paintView = Paint.createPaintView({
    top:0, right:0, bottom:80, left:0,
    // strokeWidth (float), strokeColor (string), strokeAlpha (int, 0-255)
    strokeColor:'#0f0', strokeAlpha:255, strokeWidth:10,
    eraseMode:false
});
win.add(paintView);


win.open();

*/